import { NgModule } from '@angular/core';
import { SharedModule, Lbka03WidgetComponent ,LbAAC001WidgetComponent } from '@shared';
import { DelonFormModule, WidgetRegistry } from '@delon/form';
import { LbGrsyWidgetComponent } from './widgets/lbGrsy/grsy.widgets';



export const SCHEMA_THIRDS_COMPONENTS = [
  Lbka03WidgetComponent,
  LbAAC001WidgetComponent,
  LbGrsyWidgetComponent,
];

@NgModule({
  declarations: SCHEMA_THIRDS_COMPONENTS,
  entryComponents: SCHEMA_THIRDS_COMPONENTS,
  imports: [SharedModule, DelonFormModule.forRoot()],
  exports: [...SCHEMA_THIRDS_COMPONENTS],
})
export class JsonSchemaModule {
  constructor(widgetRegistry: WidgetRegistry) {
    widgetRegistry.register(Lbka03WidgetComponent.KEY, Lbka03WidgetComponent );
    widgetRegistry.register(LbAAC001WidgetComponent.KEY, LbAAC001WidgetComponent );
  }
}
